/**
  项目JS主入口
  以依赖Layui的layer和form模块为例
**/
layui.define(['layer', 'form', 'element'], function(exports) {
    var layer = layui.layer,
        form = layui.form(),
        ele = layui.element();

    layer.open({
        type: 0,
        content: 'hahah',
        icon: 9,
        btn: ['yes', 'no'],
        yes: function(index, layero) {
            console.log(arguments);
        },
        cancel: function() {
            return layer.alert('Are you sure?');
        }
    });

    exports('index', {}); //注意，这里是模块输出的核心，模块名必须和use时的模块名一致
});